<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h4 @mouseover="change">{{msg}}</h4>
        <!-- <input type="text" :value="msg" style="width:200px;"> -->
        <!-- v-model 实现表单元素和model中数据的双向数据绑定， -->
        <input type="text" v-model="msg" style="width:200px;">

        <h3 v-bind:title="msg">{{msg}}</h3>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
        var vm=new Vue({
            el:"#app",
            data(){
                return{
                    msg:"aaaa"
                }
            },
            methods:{
                change(){
                    this.msg=this.msg+'aaa'
                }
            }
        })
    </script>
</body>
</html>